import { axios } from '@/utils/request'

/**
 * 查询收入支出配置
 *
 * @author anti
 * @date 2021-04-08 14:15:30
 */
export function busCostIncomeExpensesPage (parameter) {
  return axios({
    url: '/busCostIncomeExpenses/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 收入支出配置列表
 *
 * @author anti
 * @date 2021-04-08 14:15:30
 */
export function busCostIncomeExpensesList (parameter) {
  return axios({
    url: '/busCostIncomeExpenses/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加收入支出配置
 *
 * @author anti
 * @date 2021-04-08 14:15:30
 */
export function busCostIncomeExpensesAdd (parameter) {
  return axios({
    url: '/busCostIncomeExpenses/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑收入支出配置
 *
 * @author anti
 * @date 2021-04-08 14:15:30
 */
export function busCostIncomeExpensesEdit (parameter) {
  return axios({
    url: '/busCostIncomeExpenses/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除收入支出配置
 *
 * @author anti
 * @date 2021-04-08 14:15:30
 */
export function busCostIncomeExpensesDelete (parameter) {
  return axios({
    url: '/busCostIncomeExpenses/delete',
    method: 'post',
    data: parameter
  })
}

export function getYjcD (parameter) {
  return axios({
    url: '/busCostIncomeExpenses/tree',
    method: 'get',
    params: parameter
  })
}

export function getListByType (parameter) {
  return axios({
    url: '/busCostIncomeExpenses/getListByType/' + parameter,
    method: 'get'
  })
}
